package com.zixuan.sina.thread;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

@Configuration
public class MyFutureTask {
    @Bean
    public FutureTask<String> futureTask(Callable<String> callable){
        return new FutureTask<String>(callable);
    }
}
